// 使用克隆的原型模式
var Plane = function () {
    this.blood = 100;
    this.attackLevel = 1;
    this.defenseLevel = 1;
};

var plane = new Plane();
plane.blood = 500;
plane.attackLevel = 10;
plane.defenseLevel = 7;

var clonePlane = Object.create(plane);
console.log(clonePlane);

// 不支持 Object.create 方法的浏览器中，可以使用以下代码：
Object.create = Object.create || function (obj) {
    var F = function(){};
    F.prototype = obj;

    return new F();
}